﻿
using System.Collections.Generic;
namespace StockMonitor.Business
{
    /// <summary>
    /// 当前价格提供接口
    /// </summary>
    public interface ICurrentPriceProvider
    {
        /// <summary>
        /// 获得当前股票的价格
        /// </summary>
        /// <param name="stockCode">股票编号</param>
        /// <returns>当前价格</returns>
        double GetCurrentPrice(string stockCode);

        /// <summary>
        /// 获取当前买卖价格
        /// </summary>
        /// <param name="stockCode">股票代码</param>
        /// <param name="priceType">价格类型</param>
        /// <returns>所需价格</returns>
        double GetPrice(string stockCode, Enums.PriceType priceType);

        /// <summary>
        /// 批量获取股票的当前价格
        /// </summary>
        /// <param name="stockCodes">股票代码列表</param>
        /// <returns>结果集</returns>
        List<StockPrice> BatchGetCurrentPrice(List<string> stockCodes);
    }
}
